{% extends 'base.html' %}
{% block 'content' %}
	<table>
		<thead>
			<tr>
				<th>序号</th>
				<th>书名</th>
				<th>作者</th>
			</tr>
		</thead>
		<tbody>
			{% for i in result %}
				<tr>
					<td>{{ forloop.counter }}</td>
					<td><a href="{% url 'detail' book_id=i.0 %}">{{ i.1 }}</a></td>
					<td>{{ i.2 }}</td>
				</tr>
			{% endfor %}
		</tbody>
	</table>
	</div>
{% endblock %}